----------------------------------	
-- Area: South Gustaberg
--   NM: Carnero
-----------------------------------	

require("scripts/globals/settings");

-----------------------------------	
-- onMobDeath
-----------------------------------	

function onMobDeath(mob,killer)	

    -- Set Carnero's Window Open Time
    wait = math.random((300),(3600))
    SetServerVariable("[POP]Carnero", os.time(t) + (wait /NM_TIMER_MOD)); -- 5-60 minutes
    DeterMob(mob:getID(), true);

    -- Set PH back to normal, then set to respawn spawn
    PH = GetServerVariable("[PH]Carnero");
    SetServerVariable("[PH]Carnero", 0);
    DeterMob(PH, false);
    GetMobByID(PH):setRespawnTime(GetMobRespawnTime(PH));

end;